﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Registration.aspx.cs" Inherits="CSC440TeamOne.MyHealth.Views.Registration"
    Title="Registration" MasterPageFile="~/Shared/DefaultMaster.master" %>
<asp:Content ID="content" ContentPlaceHolderID="DefaultContent" Runat="Server">
    <h1>Registration</h1>
        <asp:Label runat="server" ID="lblFirstName" Text="First Name" />
        <asp:RequiredFieldValidator ID="firstNameValidator" runat="server" Text="*" ForeColor="Red" ControlToValidate="txtFirstName" ErrorMessage="Please enter your first name." /><br />
        <asp:TextBox runat="server" ID="txtFirstName" Width="150px" /><br />
        <br />
        <asp:Label runat="server" ID="lblLastName" Text="Last Name" />
        <asp:RequiredFieldValidator ID="lastNameValidator" runat="server" Text="*" ForeColor="Red" ControlToValidate="txtLastName" ErrorMessage="Please enter your last name." /><br />
        <asp:TextBox runat="server" ID="txtLastName" Width="150px" /><br />
        <br />
        <asp:Label runat="server" ID="lblBirthdate" Text="Birthdate (mm/dd/yyyy)" />
        <asp:RequiredFieldValidator ID="birthdateValidator" runat="server" Text="*" ForeColor="Red" ControlToValidate="txtBirthdate" ErrorMessage="Please enter your birthdate." />
        <asp:RegularExpressionValidator ID="birthdateValidatorRegex" runat="server" Text="*" ErrorMessage="Please enter a valid birthdate." ForeColor="Red" ControlToValidate="txtBirthdate" ValidationExpression="^(0[1-9]|1[012]|\d)[- /.](0[1-9]|[12][0-9]|3[01]|\d)[- /.](19|20)\d\d$" /><br />
        <asp:TextBox runat="server" ID="txtBirthdate" Width="150px" /><br />
        <br />
        <asp:Label runat="server" ID="lblGender" Text="Gender" />
        <asp:RequiredFieldValidator ID="genderValidator" runat="server" Text="*" ForeColor="Red" ControlToValidate="radioGender" ErrorMessage="Please select your gender." /><br />
        <asp:RadioButtonList runat="server" ID="radioGender">
            <asp:ListItem Text="Male" Value="Male" />
            <asp:ListItem Text="Female" Value="Female" />
        </asp:RadioButtonList>
        <br />
        <asp:Label runat="server" ID="lblEthnicity" Text="Ethnicity" />
        <asp:RequiredFieldValidator ID="ethnicityValidator" runat="server" Text="*" ForeColor="Red" ControlToValidate="cboEthnicity" ErrorMessage="Please select your ethnicity." /><br />
        <asp:RadioButtonList runat="server" ID="cboEthnicity" >
            <asp:ListItem Value="White/Caucasian" />
            <asp:ListItem Value="Hispanic/Latino" />
            <asp:ListItem Value="Asian/Pacific Islander" />
            <asp:ListItem Value="Native American Indian" />
            <asp:ListItem Value="Other" />
        </asp:RadioButtonList>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:TextBox runat="server" ID="txtEthnicityOther" Width="120px" /><br />
        <br />
        <asp:Label runat="server" ID="lblZipcode" Text="Zipcode" />
        <asp:RequiredFieldValidator ID="zipcodeValidator" runat="server" Text="*" ForeColor="Red" ControlToValidate="txtZipcode" ErrorMessage="Please enter your zipcode." /><br />
        <asp:TextBox runat="server" ID="txtZipcode" Width=" 50px" /><br />
        <br />
        <asp:Label runat="server" ID="lblCountry" Text="Country" />
        <asp:RequiredFieldValidator ID="countryValidator" runat="server" Text="*" ForeColor="Red" ControlToValidate="txtCountry" ErrorMessage="Please enter your country." /><br />
        <asp:TextBox runat="server" ID="txtCountry" Width="150px" /><br />
        <br />
        <asp:Label runat="server" ID="lblEmailAddress" Text="Email" />
        <asp:RequiredFieldValidator ID="emailAddressRequiredValidator" runat="server" Text="*" ForeColor="Red" ControlToValidate="txtEmailAddress" ErrorMessage="Please enter your email address" />
        <asp:RegularExpressionValidator ID="emailAddressValidator" runat="server" Text="*" ErrorMessage="Please use a valid email address." ForeColor="Red" ControlToValidate="txtEmailAddress" ValidationExpression="\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}\b" /><br />
        <asp:TextBox runat="server" ID="txtEmailAddress" Width="250px" />
        <br />

        <asp:ValidationSummary ID="validationSummary" ForeColor="Red" runat="server" />
        <br />
        <asp:Button runat="server" ID="btnSubmit" Text="Register" Height="22px" OnClick="register_Click" />
        
</asp:Content>
